package com.huanxing.cloud.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huanxing.cloud.order.api.entity.OrderDelivery;
import com.kuaidi100.sdk.response.SubscribePushParamResp;

import java.util.List;

/**
 * 发货单
 *
 * @author lijx
 * @since 2022/3/7 14:18
 */
public interface IOrderDeliveryService extends IService<OrderDelivery> {

	/**
	 * 物流轨迹回调
	 * @param orderDelivery
	 * @param subscribePushParamResp
	 */
	void notifyLogistics(OrderDelivery orderDelivery, SubscribePushParamResp subscribePushParamResp);

	/**
	 * 根据订单号获取发货单
	 * @param orderId
	 * @return
	 */
	OrderDelivery getByOrderId(String orderId);

}
